package com.springboot.wikiproject.controller;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api")
public class TestController {

    @GetMapping("/test")
    public String testGet() {
        return "test";
    }

    @PostMapping("/test")
    public String testPost(@RequestBody String body) {
        return "test: " + body;
    }
}

